<?php

namespace App\Exceptions;

use App\Http\Model\Hint;
use App\Http\Model\OutJson;
use Exception;

class DiamondNotEnoughException extends Exception
{
    /**
     * 转换异常为 HTTP 响应
     *
     * @param  \Illuminate\Http\Request
     * @return \Illuminate\Http\Response
     */
    public function render($request)
    {
        OutJson::outJsonResult(Hint::DIAMOND_NOT_ENOUGH, []);
    }
}